export default class Book {
  bookid = -1;
  author = "";
  category = "";
  firstChapterId = "";
  currentReadChapterid = "";
  introduction = "";
  lastChapterId = "";
  lastChapterName = "";
  lastChapterUpdate = "";
  lastChapterUpdateTime = "";
  mark =  "";
  name = "";
  status = "";
  surface = "";
  wordNum = "";
  setBook(obj){

  }
  toJson(){
    return {
      bookid:this.bookid,
      name:this.name,
      author:this.author,
      category:this.category,
      firstChapterId:this.firstChapterId,
      currentReadChapterid:this.currentReadChapterid,
      introduction:this.introduction,
      lastChapterId:this.lastChapterId,
      lastChapterName:this.lastChapterName,
      lastChapterUpdate:this.lastChapterUpdate,
      lastChapterUpdateTime:this.lastChapterUpdateTime,
      mark:this.mark,
      status:this.status,
      surface:this.surface,
      wordNum:this.wordNum
    }
  }
  toString(){
    return JSON.stringify(this.toJson());
  }


}
